﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Registrar_Usuarios.aspx.cs" Inherits="Recetas_Web.Registrar_Usuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 100%;
        }
        .style8
        {
            height: 50px;
        }
        .style9
        {
            width: 191px;
            text-align: right;
            height: 50px;
        }
        .style10
        {
            text-align: center;
            width: 302px;
            height: 50px;
        }
        .style11
        {
            width: 250px;
            height: 50px;
        }
        .style12
        {
            height: 50px;
            width: 175px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align: center; font-size: 26pt; font-family: Arial;">
        REGISTRO DE USUARIOS</h1>
    <table class="style4">
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Nombre de Usuario:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtNombreUsuario" runat="server" Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvNombreUsuario" runat="server" 
                    ControlToValidate="txtNombreUsuario" 
                    ErrorMessage="* Ingresar Nombre de Usuario" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
                <br />
                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                    ControlToValidate="txtNombreUsuario" 
                    ErrorMessage="* Nombre de Usuario Existente" 
                    
                    style="font-size: small; font-weight: 700; font-family: Arial; color: #FF0000" 
                    onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                <br />
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Contraseña:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtContraseña" runat="server" TextMode="Password" 
                    Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvContraseña" runat="server" 
                    ControlToValidate="txtContraseña" ErrorMessage="* Ingresar Contraseña" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Repetir Contraseña:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtContraseña2" runat="server" TextMode="Password" 
                    Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtContraseña" ControlToValidate="txtContraseña2" 
                    ErrorMessage="* Contraseña Incorrecta" 
                    style="font-weight: 700; font-size: small; color: #FF0000; font-family: Arial"></asp:CompareValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Nombre:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtNombre" runat="server" Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvNombre" runat="server" 
                    ControlToValidate="txtNombre" ErrorMessage="* Ingresar Nombre" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Apellido:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtApellido" runat="server" Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvApellido" runat="server" 
                    ControlToValidate="txtApellido" ErrorMessage="* Ingresar Apellido" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Sexo:</strong></span></span></td>
            <td class="style10">
                <asp:RadioButtonList ID="rblSexo" runat="server" RepeatDirection="Horizontal" 
                    style="font-weight: 700; color: #333333; font-family: Arial; font-size: small; margin-left: 60px">
                    <asp:ListItem>Masculino</asp:ListItem>
                    <asp:ListItem>Femenino</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvSexo" runat="server" 
                    ControlToValidate="rblSexo" ErrorMessage="* Seleccionar Sexo" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    E-Mail:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtEmail" runat="server" Width="207px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="* Email Inválido" 
                    style="color: #FF0000; font-weight: 700; font-family: Arial; font-size: small" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Fecha de Nacimiento:</strong></span></span></td>
            <td class="style10">
                <asp:TextBox ID="txtDiaNac" runat="server" MaxLength="2" Width="46px"></asp:TextBox>
                <asp:TextBox ID="txtMesNac" runat="server" MaxLength="2" 
                    style="margin-left: 12px" Width="47px"></asp:TextBox>
                <asp:TextBox ID="txtAnioNac" runat="server" MaxLength="4" 
                    style="margin-left: 12px" Width="64px"></asp:TextBox>
            </td>
            <td class="style11">
                <asp:RequiredFieldValidator ID="rfvFechaNac" runat="server" 
                    ControlToValidate="txtAnioNac" ErrorMessage="* Ingresar Fecha de Nacimiento" 
                    style="font-family: Arial; font-size: small; font-weight: 700; color: #FF0000"></asp:RequiredFieldValidator>
            </td>
            <td class="style8">
            </td>
        </tr>
        <tr>
            <td class="style12">
            </td>
            <td class="style9">
            </td>
            <td class="style10">
                <asp:Button ID="bCrearUsuario" runat="server" onclick="bCrearUsuario_Click" 
                    Text="Crear Usuario" />
            </td>
            <td class="style11">
                <asp:HyperLink ID="hlCancelar" runat="server" Font-Bold="True" 
                    Font-Names="Arial" Font-Size="Small" Font-Underline="True" 
                    NavigateUrl="~/Login.aspx" style="color: #0033CC">Cancelar</asp:HyperLink>
            </td>
            <td class="style8">
            </td>
        </tr>
    </table>
</asp:Content>
